package com.day03_class_object.test03_private;


import java.util.Scanner;

/**
 * @ClassName: PrivateTestDemo
 * @Author: 豆豆在睡觉
 * @Create 2024/2/25-14:12
 * @Version 1.0
 */
public class PrivateTestDemo {
    public static void main(String[] args) {
        PrivateTest p = new PrivateTest();
        PrivateTest p1 = new PrivateTest();
        System.out.println(p.getAge());
        p.setAge(130);
        p.setAge(100);
        System.out.println(p.getAge());
        p.getSay();
        System.out.println(p1.getAge());
        PrivateTest p3 = new PrivateTest(10);
        System.out.println(p3.getAge());
        Scanner sc = new Scanner(System.in);
        System.out.println("请输出字符串");
        String ling = sc.nextLine();
        System.out.println("您输出的字符串是："+ ling);

    }
}
